<?php
namespace app\admin\controller;


use think\Request;
use think\Controller;
use View;
use Db;
use Session;

class Manage extends Controller
{


    protected $beforeActionList = [
        'first',
    ];


    public function first(){

        $loginInfo  = Session::get('loginInfo');

        if(empty($loginInfo)){
            return $this->redirect('/admin/Common/login');
        }



        $viewData = [
            'loginInfo'=>$loginInfo
        ];

        View::share($viewData);

    }



    public function home(){


        return $this->fetch();
    }



}